<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xml:space="preserve">

    <!-- Copyright 2020-2025 Steinar Bang                                                -->
    <!--                                                                                 -->
    <!-- Licensed under the Apache License, Version 2.0 (the "License");                 -->
    <!-- you may not use this file except in compliance with the License.                -->
    <!-- You may obtain a copy of the License at                                         -->
    <!--   http://www.apache.org/licenses/LICENSE-2.0                                    -->
    <!-- Unless required by applicable law or agreed to in writing,                      -->
    <!-- software distributed under the License is distributed on an "AS IS" BASIS,      -->
    <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.        -->
    <!-- See the License for the specific language governing permissions and limitations -->
    <!-- under the License.                                                              -->

    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>no.priv.bang.pom</groupId>
        <artifactId>bang-authservice-client-pom</artifactId>
        <version>2.1.10</version>
    </parent>
    <groupId>no.priv.bang.oldalbum</groupId>
    <artifactId>oldalbum</artifactId>
    <version>2.2.6-SNAPSHOT</version>

    <packaging>pom</packaging>

    <name>Oldalbum picture archive wrapper</name>
    <description>Displaying albums from the 90-ies in a modern way</description>

    <modules>
        <module>oldalbum.testutilities</module>
        <module>oldalbum.services</module>
        <module>oldalbum.roleadder.test</module>
        <module>oldalbum.db.liquibase</module>
        <module>oldalbum.db.liquibase.test</module>
        <module>oldalbum.backend</module>
        <module>oldalbum.backend.imageio</module>
        <module>oldalbum.web.security</module>
        <module>oldalbum.web.api</module>
        <module>oldalbum.web.frontend</module>
        <module>oldalbum.db.liquibase.urlinit</module>
        <module>oldalbum.db.liquibase.production</module>
        <module>karaf</module>
        <module>oldalbum.tests</module>
        <module>jacoco-coverage-report</module>
        <module>docker</module>
    </modules>

    <properties>
        <open-iconic.version>1.1.1</open-iconic.version>
        <twelvemonkeys.version>3.12.0</twelvemonkeys.version>
        <sonar.cpd.exclusions>
            **/OldAlbumDerbyTestDatabase.java,
            **/OldAlbumProductionDatabase.java,
            **/AlbumEntry.java,
            **/HtmlTemplateResource.java,
            **/SettingsPageResource.java,
        </sonar.cpd.exclusions>
        <sonar.coverage.exclusions>
            **/oldalbum.testutilities/src/**/*.java
        </sonar.coverage.exclusions>
        <sonar.issue.ignore.multicriteria>e1, e2, e3, e4, e5</sonar.issue.ignore.multicriteria>
        <sonar.issue.ignore.multicriteria.e1.ruleKey>java:S6813</sonar.issue.ignore.multicriteria.e1.ruleKey>
        <sonar.issue.ignore.multicriteria.e1.resourceKey>**/oldalbum.web.api/**/*.java</sonar.issue.ignore.multicriteria.e1.resourceKey>
        <sonar.issue.ignore.multicriteria.e2.ruleKey>java:S5976</sonar.issue.ignore.multicriteria.e2.ruleKey>
        <sonar.issue.ignore.multicriteria.e2.resourceKey>**/oldalbum.web.frontend/src/test/**/*.java</sonar.issue.ignore.multicriteria.e2.resourceKey>
        <sonar.issue.ignore.multicriteria.e3.ruleKey>java:S3011</sonar.issue.ignore.multicriteria.e3.ruleKey>
        <sonar.issue.ignore.multicriteria.e3.resourceKey>**/oldalbum.testutilities/**/*.java</sonar.issue.ignore.multicriteria.e3.resourceKey>
        <sonar.issue.ignore.multicriteria.e4.ruleKey>java:S112</sonar.issue.ignore.multicriteria.e4.ruleKey>
        <sonar.issue.ignore.multicriteria.e4.resourceKey>**/oldalbum.testutilities/**/*.java</sonar.issue.ignore.multicriteria.e4.resourceKey>
        <sonar.issue.ignore.multicriteria.e5.ruleKey>java:S5976</sonar.issue.ignore.multicriteria.e5.ruleKey>
        <sonar.issue.ignore.multicriteria.e5.resourceKey>**/oldalbum.backend/src/test/**/*.java</sonar.issue.ignore.multicriteria.e5.resourceKey>
        <sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../jacoco-coverage-report/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>no.priv.bang.pom</groupId>
                <artifactId>bang-bom</artifactId>
                <version>${bang-bom.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.karaf</groupId>
                <artifactId>karaf-bom</artifactId>
                <version>${karaf.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.osgiservice</groupId>
                <artifactId>osgiservice-bom</artifactId>
                <version>${bang-osgi-service.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.osgi.service.adapters</groupId>
                <artifactId>adapters-bom</artifactId>
                <version>${osgi-service-adapters.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.jdbc</groupId>
                <artifactId>jdbc-bom</artifactId>
                <version>${bang-jdbc-utils.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.karaf</groupId>
                <artifactId>jersey-feature-bom</artifactId>
                <version>${jersey-feature.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.servlet</groupId>
                <artifactId>servlet-bom</artifactId>
                <version>${bang-servlet.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.authservice</groupId>
                <artifactId>authservice-bom</artifactId>
                <version>${authservice.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.shiro</groupId>
                <artifactId>shiro-bom</artifactId>
                <version>${shiro.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.twelvemonkeys.bom</groupId>
                <artifactId>bom</artifactId>
                <version>${twelvemonkeys.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>javax.xml.bind</groupId>
                <artifactId>jaxb-api</artifactId>
                <version>2.3.1</version>
            </dependency>
            <dependency>
                <groupId>org.webjars.bower</groupId>
                <artifactId>open-iconic</artifactId>
                <version>${open-iconic.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.testutilities</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.services</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.services</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.roleadder.test</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.roleadder.test</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.db.liquibase</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.db.liquibase</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.db.liquibase.test</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.db.liquibase.test</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.db.liquibase.production</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.db.liquibase.production</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.db.liquibase.urlinit</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.db.liquibase.urlinit</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.backend</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.backend</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.backend.imageio</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.backend.imageio</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.web.security</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.web.security</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.web.api</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.web.api</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.web.frontend</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>no.priv.bang.oldalbum</groupId>
                <artifactId>oldalbum.web.frontend</artifactId>
                <version>${project.version}</version>
                <type>xml</type>
                <classifier>features</classifier>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <releaseProfiles>release-sign-artifact</releaseProfiles>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <show>private</show>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.eluder.coveralls</groupId>
                <artifactId>coveralls-maven-plugin</artifactId>
                <version>4.3.0</version>
                <configuration>
                    <coberturaReports>
                        <coberturaReport>${basedir}/target/coverage.xml</coberturaReport>
                    </coberturaReports>
                </configuration>
            </plugin>
        </plugins>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh</artifactId>
                <version>3.5.3</version>
            </extension>
        </extensions>
    </build>

    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

    <licenses>
        <license>
            <name>Apache License version 2</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <name>Steinar Bang</name>
            <email>sb@dod.no</email>
            <url>https://steinar.bang.priv.no/</url>
            <organization>steinarb-github</organization>
            <organizationUrl>https://github.com/steinarb</organizationUrl>
        </developer>
    </developers>

    <scm>
        <url>https://github.com/steinarb/oldalbum</url>
        <connection>scm:git:https://github.com/steinarb/oldalbum.git</connection>
        <tag>oldalbum-1.9.19</tag>
    </scm>

    <issueManagement>
        <url>https://github.com/steinarb/oldalbum/issues</url>
        <system>Github issue tracker</system>
    </issueManagement>

    <ciManagement>
        <url>https://travis-ci.org/steinarb/oldalbum</url>
        <system>travis-ci</system>
    </ciManagement>

    <url>http://steinarb.github.io/oldalbum/</url>

    <profiles>
        <profile>
            <id>release-sign-artifact</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>3.2.7</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                                <configuration>
                                    <gpgArguments>
                                        <arg>--pinentry-mode</arg>
                                        <arg>loopback</arg>
                                    </gpgArguments>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>nexusDeployRelease</id>
            <activation>
                <property>
                    <name>!skipNexusDeployRelease</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.sonatype.central</groupId>
                        <artifactId>central-publishing-maven-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
